package com.bigdata.movieticketapi.vo.resp;

import com.bigdata.movieticketapi.common.pojo.BaseSeat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class PageMovieOrderRespVO  {

    @ApiModelProperty("订单id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty("用户名")
    private String movieName;

    @ApiModelProperty("用户名")
    private String images;

    @ApiModelProperty("用户名")
    private String nickName;

    @ApiModelProperty("电影场次")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime movieStartTime;

    @ApiModelProperty("电影场次")
    private List<BaseSeat> seatList;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("是否取消")
    private Integer isCancel;

    @ApiModelProperty("是否完成")
    private Integer isComplete;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("价钱")
    private BigDecimal price;

    @ApiModelProperty("审核状态")
    private Integer auditStatus;
}
